package com.hzf.workman.dao.mapper;

import com.hzf.workman.dao.model.WorkmanDemand;
import com.hzf.workman.dao.model.WorkmanDemandExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface WorkmanDemandMapper {
    long countByExample(WorkmanDemandExample example);

    int deleteByExample(WorkmanDemandExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WorkmanDemand record);

    int insertSelective(WorkmanDemand record);

    List<WorkmanDemand> selectByExample(WorkmanDemandExample example);

    WorkmanDemand selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WorkmanDemand record, @Param("example") WorkmanDemandExample example);

    int updateByExample(@Param("record") WorkmanDemand record, @Param("example") WorkmanDemandExample example);

    int updateByPrimaryKeySelective(WorkmanDemand record);

    int updateByPrimaryKey(WorkmanDemand record);
    List<WorkmanDemand> selectByPrimaryWorkmanDemand(@Param("regionNumber")int regionNumber, @Param("status")int status,
                                                    @Param("min0")long min0, @Param("max0")long max0,
                                                    @Param("min1")long min1, @Param("max1")long max1,
                                                    @Param("min2")long min2, @Param("max2")long max2,
                                                    @Param("min3")long min3, @Param("max3")long max3,
                                                    @Param("min4")long min4, @Param("max4")long max4,
                                                    @Param("min5")long min5, @Param("max5")long max5,
                                                    @Param("min6")long min6, @Param("max6")long max6,
                                                    @Param("min7")long min7, @Param("max7")long max7,
                                                    @Param("min8")long min8, @Param("max8")long max8);
}